package com.thejamy.controller;

import com.thejamy.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class main extends Activity {
	protected static final String TAG = "main";
	private Button login;
	private Button reg;
	private Button cart;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        this.login = (Button)findViewById(R.id.login);
        this.reg = (Button)findViewById(R.id.reg);
        this.cart = (Button)findViewById(R.id.cart);
        this.login.setOnClickListener(new Button.OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Log.i(TAG, "login click");
				Intent intent = new Intent();
				intent.setClass(main.this, com.thejamy.controller.user.Login.class);
				startActivity(intent);
			}
        });
        
        this.reg.setOnClickListener(new Button.OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Log.i(TAG, "reg click");
				Intent intent = new Intent();
				intent.setClass(main.this, com.thejamy.controller.user.Reg.class);
				startActivity(intent);
			}
        });
        
        this.cart.setOnClickListener(new Button.OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Log.i(TAG, "cart click");
				Intent intent = new Intent();
				intent.setClass(main.this, com.thejamy.controller.order.Cart.class);
				startActivity(intent);
			}
        });
    }
    
    
}